import LoginPage from "@/views/Login/LoginPage.vue";


const routes = [
    {
        path:"/",
        redirect:"/login"
    },
    {
        path:"/login",
        name:"login",
        component:LoginPage,
        meta:{
            isPublic:true
        }
    },
    {
        path:"/home",
        name:"home",
        component:()=> import(/* webpackChunkName: "home" */"@/views/Home/HomePage.vue"),
        children:[
            {
                path:"users",
                component:()=> import(/* webpackChunkName: "home" */"@/views/Home/pages/UserPage.vue"),
            }
        ]
    },
    {
        path:"/:a(.*)*",
        redirect:"/login"
    }
]

export default routes;